<?php
class Comentario extends AppModel {

	var $name = 'Comentario';
	var $validate = array(
		'noticia_id' => array('numeric'),
		'nombre' => array('rule'=>VALID_NOT_EMPTY, 'message'=>'Nombre es obligatorio'),
		'email' => array('email'),
		'created' => array('date')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
			'Noticia' => array('className' => 'Noticia',
								'foreignKey' => 'noticia_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);

}
?>